//
//  WifiViewController.h
//  WifiTransport
//
//  Created by apple on 10-11-23.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//
//	wifi 传书模块
#import <UIKit/UIKit.h>
#import "HTTPServer.h"

@protocol WifiAddFileProtocol <NSObject>
-(void) fileAddByWifiFinish:(NSString*) f_FilePath;
-(void) fileDeleteByWifiFinish:(NSString*) f_FilePath;
@end

@interface WifiViewController : UIViewController 
<WebFileResourceDelegate,UIAlertViewDelegate>
{
	UILabel			*_urlLabel;			//服务器地址显示
	UISwitch		*_pSwitch;			//开关按钮
	HTTPServer		*_httpServer;		//服务器
	NSMutableArray	*_fileList;			//wifi当前目录下文件数组 （保函文件夹）
	NSString        *m_OperationPath;   //当前的处理路径
    
	BOOL			_isServerRunning;	//服务器状态 
    id<WifiAddFileProtocol> m_Delegate;
    UIAlertView         * p_AlertPro;
    UIProgressView      * p_Progress;
}
@property (nonatomic,retain)NSString        *m_OperationPath;
@property (assign)id<WifiAddFileProtocol> m_Delegate;

-(void)toggleService:(id)sender;			//开关回调函数
-(NSString*) comSqlStr:(NSString*)str;		//SQL语句生成
-(BOOL)deleteBook :(NSString *)bookpath;	//输出书本
- (BOOL)networkAvailable;
@end
